<div class="navbar">
    <div class="logo">
        <a href="{% url 'account:user_login' %}">LearnEnglish</span>
    </div>
    <div class="main">
        <div class="categories">
            {% for category in categories %}
                <a href="{% url 'content:showing_content' content_type=category.model_name %}">
                    {{ category.category_name }}
                </a>
            {% endfor %}
        </div>

        <div class="dropdown">
            <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
                Мой аккаунт
            </a>

            <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                {% if request.user.is_authenticated %}
                    <li><a class="dropdown-item" href="{% url 'account:user_logout' %}">Выйти</a></li>
                {% else %}
                    <li><a class="dropdown-item" href="{% url 'account:user_login' %}">Войти</a></li>
                {% endif %}

            </ul>
        </div>

    </div>
</div>
